in the structure organization format of the message, the MIME protocol. Corresponds to the Cid:{i} identity in the XML template, such as (Note: {i} will be replaced with the corresponding string by Messageformat.format)
public class Mailaction extends actionsupport{private mailform mailform;
Public Mailform Getmailform () {return
Formmail.htm
Copy Code code as follows:
Width= "100%" >
name= sex Type=radio value= male >
Woman
Type=radio value= Female >
***
Sendmail.asp
Copy Code code as follows:
function SendMail (mailto,mailfrom,title,content)
' On Error Resume Next
Dim objcdomail
Set Objcdomail = Server.CreateObject ("CDONTS. NewMail ")
With Objcdomail
. From =mailfrom
. To =mailto
. Subject =title
. Body =content
. BodyFormat =0
. MailFormat =0
. Send
End With
Set Objcdomail
contents
Ojmail.body =content ' "Our messages are in HTML format, but your mail viewing software may not support
Ojmail.addrecipient Tomail ' recipient address
Ojmail.subject = Subject ' title
Ojmail.send (MailAddress)
End Sub
Dim subject,mailaddress,toemail,sender,fromemail,fromer,password,ojmail,usernames,tomail
Dim username,useremail
Dim pass,content
Dim mailname,mailpass,mailform,mailsmtp
Account number of mailname= "XXX" SMTP m
, EventArgs e)
{
Logic.mail m = new Mail ();
M.servicesendmail ("hjh127@163.com", "Hello", "I'm Good" "," "" ");
Response.Write ("Success!");
}
}
I've tested it successfully.
If not, please continue to refer to the following article
You can refer to these two articles first:
Http://www.5iaspx.com/aspnet/C-XieDeQiChi-SMTP-YanZhengDeFaSongYouJianQuJian-1-peq20134.html
Http://www.5iaspx.com/aspnet/C-XieDeQiChi-SMTP-YanZhengDeFaSongYouJianQuJian-2-ci9k0137.html
Reference: http://www.5iaspx.com
", "I'm Good" "," "" ");Response.Write ("Success!");}}
I've tested it successfully.If not, please continue to refer to the following articleYou can refer to these two articles first:Http://www.5iaspx.com/aspnet/C-XieDeQiChi-SMTP-YanZhengDeFaSongYouJianQuJian-1-peq20134.htmlHttp://www.5iaspx.com/aspnet/C-XieDeQiChi-SMTP-YanZhengDeFaSongYouJianQuJian-2-ci9k0137.html
References: http://www.5iaspx.comRespondents: H1J2H7-wizard five level 5-20 02:06? .....answered by:Using System;Using System.Collect
Solution:For (VAR I = 0; I
Note 1: I used a switch statement. In the syntax, there is no break after case, and I did not write it myself. The result can be imagined: I executed each case once, there may be a small error in the original good help materials. One word: Wu!NOTE 2:Remember: Obtain all HTML controls using their names, such as: document. mailform. mailselect. value; among them, mailform mailsel
The role of the JQuery.Form.js plugin is to implement an AJAX submission form.Method:1.formSerilize () is used to serialize the data in the form and automatically organize it into a URL address format that is appropriate for Ajax asynchronous requests.2.clearForm () Clears the contents of all the input values in the form.3.restForm resets all field contents in the form. Returns the fields from all forms to the default value when the page loads.Question: The difference between ajaxform () and Aja
form submission. To prevent form submission, you must return false;
Tip 1: If you do not want to jump after the form is submitted, a simple line of code can be implemented, almost the same as not using form submission:
$ ("# MailForm"). ajaxSubmit (function (message) {alert ("the form has been submitted successfully! ");});
Note:: Either ajaxForm () or ajaxForm () can have no or accept one parameter. This parameter can be either a callback function o
The role of the JQuery.Form.js plugin is to implement an AJAX submission form.Method:1.formSerilize () is used to serialize the data in the form and automatically organize it into a URL address format that is appropriate for Ajax asynchronous requests.2.clearForm () Clears the contents of all the input values in the form.3.restForm resets all field contents in the form. Returns the fields from all forms to the default value when the page loads.Question: The difference between ajaxform () and Aja
form submission. While ajaxSubmit () does not automatically block form submission. To prevent form submission, you must return false;
Tip 1: If you do not want to jump after the form is submitted, a simple line of code can be implemented, almost the same as not using form submission:
$ ("# MailForm"). ajaxSubmit (function (message) {alert ("the form has been submitted successfully! ");});
Note:: Either ajaxForm () or ajaxForm () can have no or acce
Method:1.formSerilize () is used to serialize the data in the form and automatically organize it into a URL address format that is appropriate for Ajax asynchronous Requests.2.clearForm () Clears the contents of all the input values in the Form.3.restForm resets all field contents in the Form. Returns the fields from all forms to the default value when the page loads.Question: the difference between Ajaxform () and Ajaxsubmit ():Answer: $ ("#form1"). Ajaxform (); The equivalent of two lines:
false.
Tip 1: If you want the form submission to complete without jumping, then a single line of code can be implemented, almost as if you were not using the form submission:
$ ("#MailForm"). Ajaxsubmit (function (message) {
alert ("form submission has succeeded!");
Note :both Ajaxform () and Ajaxform () can have no parameters or accept 1 parameters. The parameter can be either a callback function or a options object. This object i
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.